package com.zhangtai.utils.Excel.office;

import java.io.File;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;


public interface MSOffice<T> {

	public abstract  T read(InputStream is, boolean isXlsx);

	public <A> List<A> read(InputStream is, boolean isXlsx, Class<A> clazz) ;

	public <A> List<A> read(File excelFile, Class<A> clazz) ;

	public abstract  boolean write(T t, OutputStream outputStream);

	public abstract  boolean write(List<?> list, Class<?> clazz, OutputStream outputStream);

	public abstract boolean close();
}
